﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace WCS.Infrastructure.EFCore;

/// <summary>
/// 系统角色权限关联表
/// </summary>
[Table("Sys_RolePermission")]
public partial class SysRolePermission
{
    /// <summary>
    /// 关联ID
    /// </summary>
    [Key]
    [StringLength(32)]
    public string Id { get; set; } = null!;

    /// <summary>
    /// 角色ID
    /// </summary>
    [StringLength(32)]
    public string RoleId { get; set; } = null!;

    /// <summary>
    /// 权限ID
    /// </summary>
    [StringLength(32)]
    public string PermId { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    [Column(TypeName = "timestamp(6) without time zone")]
    public DateTime CreationTime { get; set; }
}
